﻿
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public partial class CanvasObject
{
    public Image Image;
    public Button OK2;
    public Image OK3;

    public event System.Action<Button> OnOK2;


    partial void InitCustom(object data);
    public bool Init(object data)
    {
        OK2.onClick.AddListener(delegate { OnClickOK2(OK2); });

        InitCustom(data);
        return true;
    }


    public void OnClickOK2(Button go)
    {
        if (null != OnOK2)
        {
            OnOK2(go);
        }
    }
}
